﻿using System.ComponentModel.DataAnnotations;

namespace Pyramid.Models
{
	/// <summary>
	/// 页面元素
	/// </summary>
	public class WebObject
	{
		[Display(Name = "编码")]
		[MaxLength(20)]
		public string Id { get; set; }

		[Display(Name = "名称")]
		[MaxLength(20)]
		public string Name { get; set; }

		[Display(Name = "父级编码")]
		[MaxLength(20)]
		public string ParentId { get; set; }

		[Display(Name = "类型")]
		public int WebObjectType { get; set; }

		[Display(Name = "href")]
		[MaxLength(50)]
		public string Href { get; set; }

		[Display(Name = "target")]
		[MaxLength(20)]
		public string Target { get; set; }

		[Display(Name = "排序权重")]
		public int OrderWeight { get; set; }
	}
}